import request from '@/utils/request'

// 查询废物运输信息列表
export function listWasterTransport(query) {
  return request({
    url: '/business/wasterTransport/list',
    method: 'get',
    params: query
  })
}

// 查询废物运输信息详细
export function getWasterTransport(wasteId) {
  return request({
    url: '/business/wasterTransport/' + wasteId,
    method: 'get'
  })
}

// 新增废物运输信息
export function addWasterTransport(data) {
  return request({
    url: '/business/wasterTransport',
    method: 'post',
    data: data
  })
}

// 修改废物运输信息
export function updateWasterTransport(wasteId, data) {
  return request({
    url: '/business/wasterTransport/' + wasteId,
    method: 'put',
    data: data
  })
}

// 删除废物运输信息
export function delWasterTransport(wasteId) {
  return request({
    url: '/business/wasterTransport/' + wasteId,
    method: 'delete'
  })
}
